home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World Tours: Brazil
/
WorldTours: Brazil.iso
/
pc
/
content
/
main.dir
/
00097_Script_selectItem
< prev
next >
Wrap
Text File
|
2007-04-22
|
937b
|
36 lines
global ansShowList,curQuesNum,ansList,bingoNum,QuestionUsed
on mouseup
if ansList[curQuesNum]=0 then
n=the currentspriteNum-12
ansList[curQuesNum]=n
if ansShowList[curQuesNum][n]=1 then
bingoNum=bingoNum+1
member("right num").text=bingoNum&&"/"&&QuestionUsed
end if
sprite(42).showKey()
if getOne(ansList, 0)=0 then
if bingoNum=QuestionUsed then
sprite(28).member=member("congrats")
else
sprite(28).member=member("try again")
end if
member("right rate").text=bingoNum*100/QuestionUsed&&"%"
sprite(27).member=member("right rate")
end if
end if
end
on mouseenter
if ansList[curQuesNum]=0 then
sprite(the currentspriteNum+3).foreColor=5
sprite(the currentspriteNum+6).foreColor=5
end if
end
on mouseleave
sprite(the currentspriteNum+3).foreColor=0
sprite(the currentspriteNum+6).foreColor=0
end